package com.iespring.controller.app.storage;

import com.iespring.bean.admin.sys.vo.SysStorageVo;
import com.iespring.bean.app.coupon.bo.WxCouponPageBo;
import com.iespring.bean.common.BaseRespVo;
import com.iespring.service.admin.SysService;
import com.iespring.service.app.coupon.WxCouponService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.io.IOException;

/**
 * \* Auth: 杨宇健
 * \* Time: 2022/12/31 21:08
 * \* Description: 图片模块，包括图片上传
 * \
 */
@RequestMapping("wx/storage")
@RestController
public class StorageController {
    @Resource
    SysService sysService;

    @PostMapping("upload")
    public BaseRespVo storageMylist(MultipartFile file) {
        BaseRespVo respVo = sysService.storage(file);


        return respVo;
        //return null;
    }

}
